# -*- coding: UTF-8 -*-
from naoqi import qi
import time

class Sonar():
    def __init__(self):
        self.ses = qi.Session()
        self.ses.connect("tcp://192.168.61.115:9559")
        self.motion = self.ses.service("ALMotion")
        self.post=self.ses.service("ALRobotPosture")
        self.post.goToPosture("StandInit", 0.5)
    def run(self):
        time.sleep(0.5)
        self.motion.setMoveArmsEnabled(True,True)
        self.motion.move(0.3,0,0)
mySonar=Sonar()
mySonar.run()